Most of the work of a class or package is in defining new commands, or changing the appearance of documents. This is done in the body of the package, using commands such as | | or ||.
LATEX2e provides several new commands to help class and package writers; these are described in detail in Section .
There are three things that every class file must contain: these are a definition of || and values for || and ||. So a minimal document class file is:
\NeedsTeXFormat{LaTeX2e} \ProvidesClass{minimal}[1994/04/01 Minimal class] \renewcommand{\normalsize}{\fontsize{10}{12}\selectfont} \setlength{\textwidth}{6.5in} \setlength{\textheight}{8in}However, this class file will not support footnotes, marginals, floats, etc. nor will it provide any of the 2-letter font commands such as ||; thus most classes will contain more than this minimum!